package com.lq.dubbo.rocketmq.shop.exception;

import com.lq.dubbo.rocketmq.shop.constant.ShopCode;
import lombok.extern.slf4j.Slf4j;

/**
 * @program: dubborocketmqshop
 * @description: 异常抛出类
 * @author: LQ
 * @create: 2021-06-03 14:59
 */
@Slf4j
public class CastException {
    public static void cast(ShopCode shopCode){
        log.error(shopCode.toString());
        throw new CustomerException(shopCode);
    }
}
